Select affected Cloud integration suites - #413
Conversation
|
bugbot review |
There was a problem hiding this comment.
Pull request overview
Introduces an “affected-suites” planner for the Cloud Integration GitHub Actions workflow so labeled PR runs execute only the relevant live ClickHouse Cloud integration suites based on the PR’s immediate base-to-head diff (failing closed to all suites when classification is unsafe).
Changes:
- Added
scripts/classify-cloud-integration.pyand a comprehensive unit test suite to classify changed paths (including add/modify/delete/rename/copy) into affected live suites, failing closed to “all” on unknowns/malformed diffs. - Refactored
.github/workflows/cloud-integration.ymlinto a secretless planning job that selects suites + tested SHA, and a secret-bearing job that runs only the selected suites (or skips entirely when “none”). - Updated
crates/clickhouse-cloud-api/README.mdand the Cloud API test workflow trigger paths to document and validate the new classifier behavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
scripts/tests/test_classify_cloud_integration.py |
Adds table-driven tests and inventory enforcement for source/test path→suite mappings and diff parsing. |
scripts/classify-cloud-integration.py |
Implements suite selection from git diff --name-status -z with rename/copy support and fail-closed behavior. |
crates/clickhouse-cloud-api/README.md |
Documents label-based affected-suite selection and when full scope=all is still needed. |
.github/workflows/test-cloud-api.yml |
Ensures changes to the new classifier script trigger the Cloud API library CI workflow. |
.github/workflows/cloud-integration.yml |
Adds a planning job that selects suites/test SHA and gates the secret-bearing integration job accordingly. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
a8b3c71 to
1a4fd7d
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1a4fd7d. Configure here.

Closes #406
Summary
Verification
Rebased onto main after the API and CLI modularization stack merged.